package ooday04;
import java.util.Timer;
import java.util.TimerTask;
public class Time {
    public static void main(String[] args) {


       /* Timer timer = new Timer();
        int interval = 1500;
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("打死你个龟孙");
            }
        },interval ,interval);{
        }

        Timer timer=new Timer();
        int interval=1900;
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("你是大傻狗");
            }
        },interval,interval);*/
       Timer timer=new Timer();
       int interval=3000;
       timer.schedule(new TimerTask(){
           public void run(){
               System.out.println("把你蛇在肾上");
           }
       },interval,interval);



    }
}